CXXFLAGS  = -O0 -g -Wall -I../libbamp/include
LDFLAGS   = \
	-L../libbamp/src -lbamp \
	-lboost_thread -lboost_unit_test_framework -static

SRC_FILES = *.cpp *.hpp
ALL_OBJ   = main.o
OUT       = libbamp_test

.PHONY: all clean 

all: $(OUT)

$(OUT): $(ALL_OBJ) ../libbamp/src/libbamp.a
	$(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS)

clean:
	rm -f $(ALL_OBJ) $(OUT) .depend

.depend: $(SRC_FILES)
	$(CXX) $(CXXFLAGS) -MM $^ > .depend

-include .depend
